<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="{U('lottery/credit_typelist', array('operation' => 'add'))}" title="添加">
		<i class="layui-icon" style="line-height:30px">添加开奖方式</i>
	</a>
</div>

<div class="x-body">
	<form action="?" method="post">
		<input type="hidden" name="m" value="{$m}" />
		<input type="hidden" name="c" value="{$c}" />
		<input type="hidden" name="a" value="sort" />
		<table class="layui-table">
			<thead>
                <tr>
                    <th width="10%">ID</th>
                    <th width="70%">开奖说明</th>
        			<th>操作</th>
                </tr>
            </thead>
            <tbody>
                {loop $list as $val}
                <tr>
            		<td class="text-c">{$val['id']}</td>
                    <td class="text-c">{$val['title']}</td>
                    <td class="text-c">
                        <a href="{U('lottery/credit_typelist', array('operation'=>'add', 'id'=>$val['id']))}">编辑</a>
                    </td>
                </tr>
                {/loop}
            </tbody>
		</table>
		<div id="pages" class="layui-laypage">{$multi}</div>
	</form>
</div>

{template index/footer}